package com.example.mvpdemo.mvp3;


import com.example.mvpdemo.mvp3.base.BasePresenter3;
import com.example.mvpdemo.net.NetworkCallback;

public class LoginPresenter3 extends BasePresenter3 {
    private LoginModel3 loginModel3;

    public LoginPresenter3() {
        loginModel3 = new LoginModel3();
    }

    public void login(String username, String psd) {
        loginModel3.login(username, psd, new NetworkCallback() {
            @Override
            public void result(String result) {
                if (getLoginView3() != null)
                    getLoginView3().onLoginResult(result);
            }
        });
    }


}
